<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css渐变</title>
    <style>
        .box {
            width: 300px;
            height: 300px;
            /* background-color:orange; */
            margin: 0 auto;

            /* background: linear-gradient(to bottom right,pink,greenyellow,orange); */
            /* 使用角度 */
            /* background: linear-gradient(180deg,pink,greenyellow,orange); */
            /* background: linear-gradient(90deg,pink,greenyellow); */
            /* 多个颜色 */
            /* background: linear-gradient(pink,greenyellow,orange); */
            /* 透明度 */
            /* background: linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1)); */
            /* 重复 */
            background: repeating-linear-gradient(to left,pink,greenyellow 10%,orange 20%);
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>